import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LayoutTabsComponent } from 'src/app/layout/tabs/tabs.component';
import { ContactComponent } from './contact.component';
import { ContactViewComponent } from './view/view.component';

const routes: Routes = [
  {
    path: '',
    component: LayoutTabsComponent,
    children: [
      {path: '', component: ContactComponent},
    ]
  },
  {path: 'view/:id', component: ContactViewComponent},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ContactRoutingModule {}
